import request from '@/utils/request'

/**
 * 条件分页查询所有Type
 */
export const getTypePage = (params) =>
  request.get(`/type/page`, {
    params
  })

/**
 * 添加或修改Type
 */
export const saveOrUpdateType = (params) => request.post(`/type`, params)

/**
 * 删除Type
 */
export const deleteType = (ids) =>
  request.delete(`/type/del/batch`, { data: ids })

/**
 * 获取Type列表
 */
export const getTypeList = () => request.get(`/type`)
